package com.spark.market.dal.dao;

import com.spark.market.dal.entity.SequenceInfoDo;
import org.apache.ibatis.annotations.Param;

public interface SequenceInfoDoMapper {
    int deleteByPrimaryKey(String name);

    int insert(SequenceInfoDo record);

    int insertSelective(SequenceInfoDo record);

    SequenceInfoDo selectByPrimaryKey(String name);

    int updateByPrimaryKeySelective(SequenceInfoDo record);

    int updateByPrimaryKey(SequenceInfoDo record);

    SequenceInfoDo selectSequenceByName(String name);

    int updateByNameAndCurrentValue(@Param("name") String name, @Param("currentValue") Integer currentValue);
}